package com.yang.service.impl;

import com.yang.mapper.BookMapper;
import com.yang.po.Book;
import com.yang.service.IBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Author: YANG QIANG
 * @Time: 2022-12-04 16:19
 */
@Service
public class BookServiceImpl implements IBookService {
    @Autowired
    private BookMapper bookMapper;

    public void test() {
        System.out.println("service - test");
    }

    public void getBook() {
        List<Book> books = bookMapper.selectById();
        System.out.println(books);
    }
}
